﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Web/BizWeb.Master" AutoEventWireup="true" CodeBehind="OrderTitle.aspx.cs" Inherits="FrameWork.web.Web.Project.OrderTitle" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<div class="titlepanel">
    <ul id="ttul">
        <asp:Repeater runat="server" ID="Repeater1">    
            <ItemTemplate>
             <li onclick="ChangeBG(this)" class="cmmttile"><asp:HyperLink runat="server" ID="hypLink" Target="fraOrderList" Text='<%#bind("Title") %>' ></asp:HyperLink></li>
            </ItemTemplate>              
        </asp:Repeater>
       <%-- <li><a href="javascript:void(0);" target="fraOrderList">执行中的订单</a></li>
        <li><a href="javascript:void(0);" target="fraOrderList">已完成的订单</a></li>--%>
    </ul>   
</div>
<script type="text/javascript">
    function ChangeBG(lnk) {
        if (lnk.className != "slttile") {
            var ul = document.getElementById("ttul");
            var links = ul.getElementsByTagName("li");
            for (var i = 0; i < links.length; i++) {
                links[i].className = "cmmttile";
           }
           lnk.className = "slttile";
           $("a", lnk)[0].click();
        }
   }
   $(function () {
       var lis = $("li", "#ttul");
       if (lis.length > 0) {
           $("li", "#ttul")[0].click();
       }
   })
</script>
</asp:Content>

